bus = [
1	3	0	0	0	0	1	1.06	0	0	1	1.06	0.94	
2	2	21.7	12.7	0	0	1	1.045	-4.98	0	1	1.06	0.94	
3	2	94.2	19	0	0	1	1.01	-12.72	0	1	1.06	0.94	
4	1	47.8	-3.9	0	0	1	1.019	-10.33	0	1	1.06	0.94	
5	1	7.6	1.6	0	0	1	1.02	-8.78	0	1	1.06	0.94	
6	2	11.2	7.5	0	0	1	1.07	-14.22	0	1	1.06	0.94	
7	1	0	0	0	0	1	1.062	-13.37	0	1	1.06	0.94	
8	2	0	0	0	0	1	1.09	-13.36	0	1	1.06	0.94	
9	1	29.5	16.6	0	19	1	1.056	-14.94	0	1	1.06	0.94	
10	1	9	5.8	0	0	1	1.051	-15.1	0	1	1.06	0.94	
11	1	3.5	1.8	0	0	1	1.057	-14.79	0	1	1.06	0.94	
12	1	6.1	1.6	0	0	1	1.055	-15.07	0	1	1.06	0.94	
13	1	13.5	5.8	0	0	1	1.05	-15.16	0	1	1.06	0.94	
14	1	14.9	5	0	0	1	1.036	-16.04	0	1	1.06	0.94	
];
branch = [
1	2	0.01938	0.05917	0.0528	0	0	0	0	0	1	-360	360	
1	5	0.05403	0.22304	0.0492	0	0	0	0	0	1	-360	360	
2	3	0.04699	0.19797	0.0438	0	0	0	0	0	1	-360	360	
2	4	0.05811	0.17632	0.034	0	0	0	0	0	1	-360	360	
2	5	0.05695	0.17388	0.0346	0	0	0	0	0	1	-360	360	
3	4	0.06701	0.17103	0.0128	0	0	0	0	0	1	-360	360	
4	5	0.01335	0.04211	0	0	0	0	0	0	1	-360	360	
6	11	0.09498	0.1989	0	0	0	0	0	0	1	-360	360	
6	12	0.12291	0.25581	0	0	0	0	0	0	1	-360	360	
6	13	0.06615	0.13027	0	0	0	0	0	0	1	-360	360	
7	8	0	0.17615	0	0	0	0	0	0	1	-360	360	
7	9	0	0.11001	0	0	0	0	0	0	1	-360	360	
9	10	0.03181	0.0845	0	0	0	0	0	0	1	-360	360	
9	14	0.12711	0.27038	0	0	0	0	0	0	1	-360	360	
10	11	0.08205	0.19207	0	0	0	0	0	0	1	-360	360	
12	13	0.22092	0.19988	0	0	0	0	0	0	1	-360	360	
13	14	0.17093	0.34802	0	0	0	0	0	0	1	-360	360	
4	7	0	0.20912	0	0	0	0	0.978	0	1	-360	360	
4	9	0	0.55618	0	0	0	0	0.969	0	1	-360	360	
5	6	0	0.25202	0	0	0	0	0.932	0	1	-360	360	
];
mdata = [
1	2.33469	0.0107533	2.32393	2500	1	1	1	
1	0.219678	0.0366777	0.183	2500	2	2	2	
1	-0.987177	-0.0451769	-0.942	2500	3	3	3	
1	-0.460757	0.0172435	-0.478	2500	4	4	4	
1	-0.0696247	0.0063753	-0.076	2500	5	5	5	
1	-0.138154	-0.0261538	-0.112	2500	6	6	6	
1	-0.303672	-0.00867184	-0.295	2500	9	9	9	
1	-0.0831475	0.00685249	-0.09	2500	10	10	10	
1	0.0365679	0.0715679	-0.035	2500	11	11	11	
1	-0.00561126	0.0553887	-0.061	2500	12	12	12	
1	-0.161998	-0.0269977	-0.135	2500	13	13	13	
1	-0.0883015	0.0606985	-0.149	2500	14	14	14	
2	-0.150985	0.0145081	-0.165493	2500	1	1	1	
2	0.30731	-0.0012611	0.308571	2500	2	2	2	
2	0.0750483	0.0142949	0.0607535	2500	3	3	3	
2	0.0349007	-0.00409932	0.039	2500	4	4	4	
2	-0.0184829	-0.00248289	-0.016	2500	5	5	5	
2	0.0821034	0.029794	0.0523094	2500	6	6	6	
2	0.204415	0.0281807	0.176235	2500	8	8	8	
2	-0.137656	0.0283438	-0.166	2500	9	9	9	
2	-0.0445701	0.0134299	-0.058	2500	10	10	10	
2	-0.0421497	-0.0241497	-0.018	2500	11	11	11	
2	-0.00165523	0.0143448	-0.016	2500	12	12	12	
2	-0.0253953	0.0326047	-0.058	2500	13	13	13	
2	-0.0402221	0.00977788	-0.05	2500	14	14	14	
0	1.08069	0.0206939	1.06	2500	1	1	1	
0	1.05954	0.0145377	1.045	2500	2	2	2	
0	1.00393	-0.00606882	1.01	2500	3	3	3	
0	1.02355	0.00587743	1.01767	2500	4	4	4	
0	1.00377	-0.0157457	1.01951	2500	5	5	5	
0	1.08777	0.0177679	1.07	2500	6	6	6	
0	1.03858	-0.0229414	1.06152	2500	7	7	7	
0	1.06862	-0.0213774	1.09	2500	8	8	8	
0	1.03974	-0.01619	1.05593	2500	9	9	9	
0	0.992099	-0.0588857	1.05098	2500	10	10	10	
0	1.08567	0.0287676	1.05691	2500	11	11	11	
0	1.06169	0.00650381	1.05519	2500	12	12	12	
0	1.03528	-0.0150986	1.05038	2500	13	13	13	
0	1.06294	0.027406	1.03553	2500	14	14	14	
3	1.5346	-0.0342303	1.56883	2500	1	2	1	
4	-0.206088	-0.00204485	-0.204043	2500	1	2	1	
3	0.750275	-0.00482894	0.755104	2500	1	5	2	
4	0.044934	0.00638413	0.0385499	2500	1	5	2	
3	0.738633	0.00625717	0.732376	2500	2	3	3	
4	0.0183044	-0.0172976	0.035602	2500	2	3	3	
3	0.560714	-0.000601026	0.561315	2500	2	4	4	
4	-0.0188011	-0.00329758	-0.0155035	2500	2	4	4	
3	0.427716	0.0125541	0.415162	2500	2	5	5	
4	0.0335753	0.0218653	0.01171	2500	2	5	5	
3	-0.210671	0.0221855	-0.232857	2500	3	4	6	
4	0.0274581	-0.0172731	0.0447312	2500	3	4	6	
3	-0.610035	0.00154718	-0.611582	2500	4	5	7	
4	0.133954	-0.0242823	0.158236	2500	4	5	7	
3	0.0512628	-0.02227	0.0735328	2500	6	11	8	
4	0.0354677	-0.000136987	0.0356047	2500	6	11	8	
3	0.108513	0.0306526	0.0778607	2500	6	12	9	
4	0.00964082	-0.0153933	0.0250341	2500	6	12	9	
3	0.184907	0.00742758	0.17748	2500	6	13	10	
4	0.0676541	-0.00451169	0.0721658	2500	6	13	10	
3	0.0223471	0.0223471	-5.70828e-13	2500	7	8	11	
4	-0.193411	-0.0217813	-0.17163	2500	7	8	11	
3	0.281393	0.000651149	0.280742	2500	7	9	12	
4	0.0688374	0.0110505	0.0577869	2500	7	9	12	
3	0.0742877	0.0220122	0.0522755	2500	9	10	13	
4	0.0730756	0.0308842	0.0421914	2500	9	10	13	
3	0.0959824	0.00171862	0.0942638	2500	9	14	14	
4	0.00626826	-0.0298318	0.0361001	2500	9	14	14	
3	-0.0526993	-0.014846	-0.0378532	2500	10	11	15	
4	-0.0373823	-0.0212316	-0.0161506	2500	10	11	15	
3	0.0631517	0.0470091	0.0161426	2500	12	13	16	
4	-0.00477245	-0.012312	0.00753959	2500	12	13	16	
3	0.0714	0.0149615	0.0564385	2500	13	14	17	
4	0.0136234	-0.00384837	0.0174717	2500	13	14	17	
-3	-0.26297	0.0177722	-0.280742	2500	4	7	18	
-4	0.0985458	-0.015297	0.113843	2500	4	7	18	
-3	-0.188843	-0.0280454	-0.160798	2500	4	9	19	
-4	-0.0111243	-0.0284475	0.0173232	2500	4	9	19	
-3	-0.431109	0.00976388	-0.440873	2500	5	6	20	
-4	-0.0840427	-0.0035475	-0.0804952	2500	5	6	20	
];

pfresult=[   
1	1.060000	0.000000
2	1.045000	-4.982589
3	1.010000	-12.725100
4	1.017671	-10.312901
5	1.019514	-8.773854
6	1.070000	-14.220946
7	1.061520	-13.359627
8	1.090000	-13.359627
9	1.055932	-14.938521
10	1.050985	-15.097288
11	1.056907	-14.790622
12	1.055189	-15.075585
13	1.050382	-15.156276
14	1.035530	-16.033645
];

